//
//  SelectEffect.swift
//  SBSafetyApp
//
//  Created by Lina on 2023/12/4.
//

import Foundation
import UIKit

class SelectEffect: TextFieldEffect {
    let selectBtn = UIButton.createCornerCustom("选择")

    override func setupUI() {
        super.setupUI()
        
//        selectBtn.tintColor = .primary
//        selectBtn.contentMode = .scaleAspectFit
//        selectBtn.setTitle("选择", for: .normal)
//        selectBtn.setImage(UIImage(systemName: "filemenu.and.selection"), for: .normal)
        addSubview(selectBtn)
        selectBtn.snp.makeConstraints { make in
            make.right.equalToSuperview().offset(-16)
            make.centerY.equalToSuperview()
            make.width.equalTo(60)
            make.height.equalTo(30)
        }
        
        ctl.snp.remakeConstraints { make in
            make.left.top.bottom.equalToSuperview()
            make.right.equalTo(selectBtn.snp.left)
        }
    }
}
